<?php require_once SITE_ROOT . "/mod/default/main.inc.php";?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?php echo $seo['title'];?></title>
<?php if(isset($seo['keywords'])){ ?><meta name="keywords" content="<?php echo $seo['keywords'];?>" /><?php }?>
<?php if(isset($seo['description'])){ ?><meta name="description" content="<?php echo $seo['description'];?>" /><?php }?>
<link href="<?=$tplpath?>/skin/e7cf850a.css"rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?=$tplpath?>/js/c4d8eaea.js"></script>
<script type="text/javascript" src="<?=$tplpath?>/js/b331327d.js"></script>
<script type="text/javascript" src="<?=$tplpath?>/js/c3d61932.js"></script>
<script type="text/javascript" src="<?=$tplpath?>/js/3e1f96be.js"></script>
<!-reload-!>
<script type="text/javascript" src="http://cbjs.baidu.com/js/m.js"></script>
<script type="text/javascript" src="<?=SITE_PATH."/templates/default/uaredirect.js"?>"></script>
<script type="text/javascript">uaredirect("http://<?=$site_url . $site_path?>/m/");</script>
</head>
<body style='background:rgb(61,92,94) url(<?=$tplpath?>/skin/8e088636.png) repeat-x scroll 50% 0%'>
<script>
var PDV_PAGEID='1'; 
var PDV_RP=''; 
var PDV_COLTYPE='index'; 
var PDV_PAGENAME='index'; 
</script>
<div id='contain' style='width:1002px;background:none transparent scroll repeat 0% 0%;margin:0px auto;padding:0px'>
  <div id='top' style='width:1002px;height:384px;background:none transparent scroll repeat 0% 0%'> 
    
    <!-- 空白色块 -->
    
    <div id='pdv_10212' class='pdv_class'  title='' style='width:288px;height:101px;top:0px;left:0px; z-index:1'>
      <div id='spdv_10212' class='pdv_top' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:#ffffff;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> </div>
            <div style="float:right;margin-right:10px;display:none"> <a href="#" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px"> &nbsp; </div>
        </div>
      </div>
    </div>
    
    <!-- 头部图片轮播 -->
    
    <div id='pdv_9411' class='pdv_class'  title='' style='width:1002px;height:280px;top:102px;left:0px; z-index:2'>
      <div id='spdv_9411' class='pdv_top' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> </div>
            <div style="float:right;margin-right:10px;display:none"> <a href="#" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px">
            <link href="<?=$tplpath?>/skin/54f96d78.css"rel="stylesheet" type="text/css" />
            <script type=text/javascript src="<?=$tplpath?>/js/c3bddad2.js"></script>
            <div id='advsheadlb'> 
            	<a href='<?=@_e($tpl_banner_1_link, "http://{$site_url}{$site_path}")?>' title='' target='_blank'><img src="<?=SITE_PATH . '/' . @thumb(_e($tpl_banner_1, "templates/{$skinid}/skin/ad1.jpg"), 1002, 280)?>" width='1002' height='280' border='0' class='advsheadlbpic' id='advsheadlbpic_0'> </a>
                <a href='<?=@_e($tpl_banner_2_link, "http://{$site_url}{$site_path}")?>' title='' target='_blank'><img src="<?=SITE_PATH . '/' . @thumb(_e($tpl_banner_2, "templates/{$skinid}/skin/ad2.jpg"), 1002, 280)?>" width='1002' height='280'  border='0' class='advsheadlbpic' id='advsheadlbpic_1'> </a>
                <a href='<?=@_e($tpl_banner_3_link, "http://{$site_url}{$site_path}")?>' title='' target='_blank'><img src="<?=SITE_PATH . '/' . @thumb(_e($tpl_banner_3, "templates/{$skinid}/skin/ad3.jpg"), 1002, 280)?>"  width='1002' height='280' border='0' class='advsheadlbpic' id='advsheadlbpic_2'> </a>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 网站标志 -->
    
    <div id='pdv_8443' class='pdv_class'  title='' style='width:264px;height:82px;top:13px;left:21px; z-index:5'>
      <div id='spdv_8443' class='pdv_top' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> </div>
            <div style="float:right;margin-right:10px;display:none"> <a href="#" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px"> <a href="<?php echo SITE_PATH . '/';?>"><img src="<?=SITE_PATH . '/' . @thumb(_e("{$tpl_logo}",  "{$logofile}", "templates/{$skinid}/skin/logo.png"), 241, 72)?>"border="0" /></a> </div>
        </div>
      </div>
    </div>
    
    <!-- 一级导航菜单 -->
    
    <div id='pdv_8451' class='pdv_class'   style='width:704px;height:48px;top:53px;left:298px; z-index:6'>
      <div id='spdv_8451' class='pdv_top' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> 导航菜单 </div>
            <div style="float:right;margin-right:10px;display:none"> <a href="#" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px">
            <link href="<?=$tplpath?>/skin/63ec8b08.css"rel="stylesheet" type="text/css" />
            <div id="menumain">
              <div class="mainmenuiner"> 
              
           	 	<a href="<?php echo SITE_PATH . '/';?>"  target="_self" class="menumain">网站首页</a>         
			  	<?php foreach($system_tree_category as $k => $v) {?>
             	<a href="<?=$v['category_link']?>"  target="_self" class="menumain"><?=$v['name']?></a>
              	<?php }?>
   
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 设为首页加入收藏 -->
    
    <div id='pdv_9409' class='pdv_class'   style='width:219px;height:20px;top:20px;left:781px; z-index:11'>
      <div id='spdv_9409' class='pdv_top' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> </div>
            <div style="float:right;margin-right:10px;display:none"> <a href="#" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px">
            <div style="height:30px;"> <img src="<?=$tplpath?>/skin/1f0cd9fc.jpg" border="0" /><a href="<?php echo SITE_PATH . '/';?>" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://<?php echo $home . SITE_PATH; ?>'); return(false);" style="color:#63635a;font:12px/14px simsun;padding-left:6px;text-decoration:none;">设为首页 </a><img src="<?=$tplpath?>/skin/330a3714.jpg" border="0" /> <a href="http://<?php echo $home . SITE_PATH; ?>" style="color:#63635a;font:12px/14px simsun;padding-left:2px;text-decoration:none;" onClick="window.external.addFavorite('http://<?php echo $home . SITE_PATH; ?>','<?=$company_name?>'); return(false);">加入收藏 </a> <img src="<?=$tplpath?>/skin/5b042e91.jpg" border="0" /><a href="mailto:<?=$company_email?>" style="color:#63635a;font:12px/14px simsun;padding-left:8px;text-decoration:none;">联系我们</a> </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div id='content' style='width:1002px;height:425px;background:#ffffff;margin:0px auto'> 
    
    <!-- 文章列表 -->
    <?php /*从后台的首页设置中调用分类ID,如果调用不到，就随机显示。*/ ?>
    <?php if(!isset($index_cat3) || $system_category[$index_cat3]['module'] != 'article'){
		$index_cat3 = array();
		foreach ($system_category as $k => $v) {
			/*必须是文章模型*/
			if ($v['module'] == 'article') {
				$index_cat3[] = $k;
			}
		}
		//随机调用一产品模型
		$catid = $index_cat3[array_rand($index_cat3)];
	} else {
		$catid = $index_cat3;
	}
	?>
    <div id='pdv_8452' class='pdv_class'  title='' style='width:416px;height:205px;top:218px;left:40px; z-index:7'>
      <div id='spdv_8452' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;">
          <div style="height:43px;border:0px;padding:0;margin:0;background:url(<?=$tplpath?>/skin/5603c2ad.png) 0px 0px no-repeat;">
            <div style="float:right;width:30px;height:43px;background:url(<?=$tplpath?>/skin/5603c2ad.png) -970px 0px no-repeat;padding-top:0px;"> <a href="<?=$system_category[$catid]['category_link']?>" style="display:inline"><img src="<?=$tplpath?>/skin/bc85017b.png" style="border:0px;padding-top:11px;"></a> </div>
          </div>
          <div style="margin:0px;padding:0px">
            <link href="<?=$tplpath?>/skin/242bd7ec.css"rel="stylesheet" type="text/css" />
            <ul class="newslist_time">
            <?php if(array_key_exists($catid, $system_category) && $system_category[$catid]['module'] == 'article'){ 
						$data = tpl_article_list("category={$catid}&limit=5");  $list = $data['list'];
						if(is_array($list) && count($list) ) {
							foreach($list as $k => $v) {?>
                              <li class="newslist_time">
                                <div class="time"><?=date("m/d", $k)?></div>
                                <a href="<?=$v['html_link']?>" target="_self" class="newslist_time"   ><?=@_e($v['body_name'], '没有名字')?></a>
                              </li>
                            <?php }?>
						<?php } else {?>
                            <li class="newslist_time"><a href="#" target="_self" class="newslist_time">该模分类还没有数据，请在后台添加。</a>  </li>
                        <?php } ?>
            <?php } else {?>
               	<li class="newslist_time"><a href="#" target="_self" class="newslist_time">该模分类还没有数据，请在后台添加。</a>  </li>
            <?php } ?>
            </ul>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 自选产品列表 -->
    <?php /*从后台的首页设置中调用分类ID,如果调用不到，就随机显示。*/ ?>
    <?php if(!isset($index_cat1) || $system_category[$index_cat1]['module'] != 'product'){
		$index_cat1 = array();
		foreach ($system_category as $k => $v) {
			/*必须是产品模型*/
			if ($v['module'] == 'product') {
				$index_cat1[] = $k;
			}
		}
		//随机调用一产品模型
		$catid = $index_cat1[array_rand($index_cat1)];
	} else {
		$catid = $index_cat1;
	}
	?>
    <div id='pdv_8456' class='pdv_class'  title='' style='width:430px;height:330px;top:86px;left:529px; z-index:8'>
      <div id='spdv_8456' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> </div>
            <div style="float:right;margin-right:10px;display:inline"> <a href="<?=$system_category[$catid]['category_link']?>" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px">
            <link href="<?=$tplpath?>/skin/97baa8f3.css"rel="stylesheet" type="text/css" />
            <script>iFlag=0;</script>
            <div class="productlist_dolphin_up" onMouseOver=bMouseOver=0 onMouseOut=bMouseOver=1>
              <table width=428 border=0 cellpadding=0 id=commendlist style="POSITION: relative;" name="commendlist" cellspacing="0">
                <tbody>
                
                  <tr>
                    <td>
                      <div class="productlist_line">
                      
				<?php $x = -1;?>
                <?php if(array_key_exists($catid, $system_category) && $system_category[$catid]['module'] == 'product'){ 
                            $data = tpl_product_list("category={$catid}&limit=9&depth=1&status=8");  $list = $data['list'];
                            if(is_array($list) && count($list) ) {
                                foreach($list as $k => $v) {?>
                               
								   <?php if ($x % 3 == 2) {?>
                      </div>
                     </td>
                  </tr>
                                  
                  <tr>
                    <td>
                      <div class="productlist_line">
                                   <?php }?>
                                   
                                    <div class="productborder">
                                        <div class="fang" style="width:120px;height:120px">
                                            <div class="picFit" style="width:120px;height:120px"> <a href="<?=$v['html_link']?>" target="_self" ><img src="<?php echo SITE_PATH . "/"  . thumb($v['ptitle'], 165, 125);?>" style="width:120px;height:120px;" border="0" /></a> </div>
                                        </div>
                                        <a href="<?=$v['html_link']?>" target="_self" ><?=_e(str_sub($v['name'], 15, '…'), "没有名字")?></a> 
                                    </div>
                              		<?php $x++;?>
                                <?php }?>
                            <?php } else {?>
                                <a href="#" target="_self" class="">该模分类还没有数据，请在后台添加。</a> 
                            <?php } ?>
                <?php } else {?>
                    <a href="#" target="_self" class="">未正确选择分类</a> 
                <?php } ?>
                  </div>
                 </td>
              </tr>
                  
                  
				 <script language=javascript> if (iFlag == 0){ iFlag=1; document.write(commendlist.tBodies[0].innerHTML); } </script>
                </tbody>
              </table>
            </div>
				<script language=javascript>
					bMouseOver=1;
					function test()
					{
						timer1=setInterval('commendlistScroll()',25)  
					}
					function commendlistScroll() 
					{ 
						if (bMouseOver==1){
								for (i=0;i<2;i++){
									if ((commendlist.style.pixelTop-1)%(156)==0){
										clearTimeout(timer1);	
										setTimeout('test()',1800);
									}
									commendlist.style.pixelTop=(commendlist.style.pixelTop-1)%(commendlist.clientHeight/2);
								}	
						}
					} 
					timer1=setInterval('commendlistScroll()',25)  
				</script> 
          </div>
        </div>
      </div>
    </div>
    
    <!-- 空白边框 -->
    
    <div id='pdv_8863' class='pdv_class'  title='' style='width:430px;height:30px;top:36px;left:528px; z-index:10'>
      <div id='spdv_8863' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;">
          <div style="height:43px;border:0px;padding:0;margin:0;background:url(<?=$tplpath?>/skin/a82832d7.png) 0px 0px no-repeat;">
            <div style="float:right;width:30px;height:43px;background:url(<?=$tplpath?>/skin/a82832d7.png) -970px 0px no-repeat;padding-top:0px;"> <a href="<?=$system_category[$catid]['category_link']?>" style="display:inline"><img src="<?=$tplpath?>/skin/72f05b53.png" style="border:0px;padding-top:11px;"></a> </div>
          </div>
          <div style="margin:0px;padding:0px"> &nbsp; </div>
        </div>
      </div>
    </div>
    
    <!-- HTML编辑区 -->
    
    <div id='pdv_9412' class='pdv_class'  title='公司简介' style='width:416px;height:160px;top:36px;left:40px; z-index:12'>
      <div id='spdv_9412' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;">
          <div style="height:43px;border:0px;padding:0;margin:0;background:url(<?=$tplpath?>/skin/d245447d.png) 0px 0px no-repeat;">
            <div style="float:right;width:30px;height:43px;background:url(<?=$tplpath?>/skin/d245447d.png) -970px 0px no-repeat;padding-top:0px;"> <a href="<?php echo @_e($p1_link, "http://www.php.net.cn");?>" style="display:inline"><img src="<?=$tplpath?>/skin/fffe3b95.png" style="border:0px;padding-top:11px;"></a> </div>
          </div>
          <div style="margin:0px;padding:0px">
            <div style="FONT: 12px/22px simsun; COLOR: #393939"><img style="PADDING-RIGHT: 14px; FLOAT: left" border=0 alt="" src="<?=SITE_PATH . '/' . @thumb(_e("{$p1_img}", "templates/{$skinid}/skin/ad_p1.png"), 140, 105)?>" />&nbsp;&nbsp;&nbsp;&nbsp; <?php echo @_e($p1, "请通过：网站后台>> 网站首页设置 >> 编辑对应内容");?></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div id='bottom' style='width:1002px;height:148px;background:url(<?=$tplpath?>/skin/c973a084.gif) repeat-y'> 
    
    <!-- 图片/FLASH -->
    
    <div id='pdv_8444' class='pdv_class'  title='' style='width:1002px;height:134px;top:0px;left:0px; z-index:3'>
      <div id='spdv_8444' class='pdv_bottom' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> </div>
            <div style="float:right;margin-right:10px;display:none"> <a href="#" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px"> <img src="<?=$tplpath?>/skin/8f7953a6.png" border="0" width="100%" /> </div>
        </div>
      </div>
    </div>
    
    <!-- 底部信息编辑区 -->
    
    <div id='pdv_8442' class='pdv_class'  title='' style='width:1002px;height:69px;top:77px;left:0px; z-index:4'>
      <div id='spdv_8442' class='pdv_bottom' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> </div>
            <div style="float:right;margin-right:10px;display:none"> <a href="#" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px">
            <div style="width:100%;text-align:center;font:12px/20px Arial, Helvetica, sans-serif">
              <div style="TEXT-ALIGN: center; LINE-HEIGHT: 24px; MARGIN: 0px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; COLOR: #464646">版权所有 Copyright&copy;2008-2014 <?=$company_name?><script language="javascript" type="text/javascript">document.write('，<a href="http://www.miibeian.gov.cn" target="_blank"><?=$website_icp?></a>');</script>，<a href="<?=$site_path?>/archives/" target="_blank">网站地图</a></div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 底部菜单（一级） -->
    
    <div id='pdv_8455' class='pdv_class'   style='width:1002px;height:30px;top:14px;left:0px; z-index:9'>
      <div id='spdv_8455' class='pdv_bottom' style='overflow:hidden;width:100%;height:100%'>
        <div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
          <div style="height:25px;margin:1px;display:none;background:;">
            <div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:"> 脚注栏目 </div>
            <div style="float:right;margin-right:10px;display:none"> <a href="#" style="line-height:25px;color:">更多</a> </div>
          </div>
          <div style="padding:0px">
            <link href="<?=$tplpath?>/skin/c7cbadd1.css"rel="stylesheet" type="text/css" />
            <div id="bottommenu">
			<?php if (is_array($swap_text_links) && count($swap_text_links) ) {?>
            	友情链接 ：<?php foreach($swap_text_links as $k => $v) {?> <a href="<?=$v['href']?>" target="_blank"><?=$v['name']?></a>| <?php }?> 
            <?php }else{ ?>
				| <?php foreach($system_tree_category as $k => $v) {?> <a href="<?=$v['category_link']?>" target="_self"><?=$v['name']?></a>| <?php }?> 
            <?php }?>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">BAIDU_CLB_fillSlot("665944");</script>
<div id='bodyex'> </div>
<?php if(!empty($site_bgsound)){echo tpl_media_pay('mySound', $site_bgsound, 1, 1);  }?>
<?php if(is_array($online_service) && count($online_service)){ include "{$site_dir}/templates/default/online_service.tpl.php"; }?>
<?php if(!empty($stat_code)){ ?><div style="display:none"><?=$stat_code?></div><?php }?>

<noscript> <a href="http://www.winpc.cn">win7</a> </noscript>
</body>
</html>
